/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fuzzyLogic;

import java.util.ArrayList;

/**
 *
 * @author CygiDawid
 */
public class FuzzyLogic {
    private ArrayList<LinguisticVariable> _variables;
    private ArrayList<FuzzyRule> _rules;
    
    
    public FuzzyLogic() {
        _variables = new ArrayList();
        _rules = new ArrayList();
    }
    
    
    public void addVariable(LinguisticVariable variable) {
        _variables.add(variable);
    }
    
    
    public double getResult(int ruleID, double... values) {
        
        
        
        return 0d;
    }
    
    public int addRule(FuzzyRule rule) {
        int ruleId = _rules.size();
        
        _rules.add(rule);
        
        return ruleId;
    }
}
